<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\Pjax;

$this->title = Yii::t('app', '京东地区');
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="action-index">
    <?php Pjax::begin(); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'kartik\grid\SerialColumn'],
            'id',
            'fid',
            'name',
            [
                'class' => \kartik\grid\DataColumn::class,
                'label' => "父级",
                'value' => function($model){
                    return $model->allParentsNames;
                }
            ],
        ],
    ]); ?>
    <?php Pjax::end(); ?>
</div>
